

<!-----------------filter form ----------------------------------->
<br/>
<br/>
<table id="tbllist" style="width:100%">
<tbody>
<tr>
<th class="tbslno">Sl.No</th>
<th class="tbname">Country Name</th>
<th class="tbname">Price</th>
<th class="tbname">Form</th>

</tr>
<?php 

if(!empty($form)) {
	foreach($form as $key => $record) {
		$style = (++$key%2) ? 'alt1' : 'alt'; 
?>	
	<tr class="<?php echo $style;?>">
		<td><?= ($cur_page + $key);?></td>
		<td><?php echo $record['countries']?></td>
        <td><?php echo $record['price']?></td>
        <?php
	  

		
		$p= $_SERVER['DOCUMENT_ROOT'].$member_image_path."uploads/".$record['id']."."."pdf";	
		//echo $p;
		if(file_exists($p))
		{
		?>
        <td><a href="<?=$member_image_path;?>uploads/<?=$record['id']; ?><?php echo ".pdf"; ?>" target="_blank"> view </a>/<a href="<?=$member_base_url;?>upload_form/download_form/<?=$record['id']; ?>/<?php echo "pdf"; ?>">download</a></td>
        <?php
		}
		else
		{
			echo "<td>No file</td>";
		}
		?>
		
	</tr>
<?php 
	}
} else {
?>
<tr><td colspan="6">No forms available</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>